import Layout from '@/layout'

const blogstoreRouter = {
  path: '/blogstore',
  component: Layout,
  redirect: '/blogstore/list',
  name: 'blogstore',
  children: [
    // {
    //   path: '/blogstore/list',
    //   component: () => import('@/views/blogstore/list'),
    //   name: 'blogstoreList',
    //   meta: { title: '博客内容管理', activeMenu: '/blogstore/list' },
    //   hidden: true
    // },
    {
      path: '/blogstore/create',
      component: () => import('@/views/blogstore/components/create'),
      name: 'blogstoreCreate',
      meta: { title: '发布博客', activeMenu: '/blogstore/list' },
      hidden: true
    },
    {
      path: '/blogstore/edit/:id(\\d+)',
      component: () => import('@/views/blogstore/components/edit'),
      name: 'blogstoreEdit',
      meta: { title: '编辑博客', activeMenu: '/blogstore/list' },
      hidden: true
    },
    {
      path: '/blogstore/detail/:id(\\d+)',
      component: () => import('@/views/blogstore/components/detail'),
      name: 'blogstoreDetail',
      meta: { title: '博客详情', activeMenu: '/blogstore/list' },
      hidden: true
    },
  ]
}
export default blogstoreRouter;
